from django.db import models

class Certificate(models.Model):
    name = models.CharField(max_length=128,unique=False,editable=False,blank=False)
    owner = models.CharField(max_length=30,unique=False,editable=False,blank=False)
    cert = models.TextField(editable=False,blank=False)
    key = models.TextField(editable=False,blank=False)
    peerid = models.CharField(max_length=40,unique=False,editable=False,blank=True)

    class Admin:
       list_display =  ('name','owner','peerid','cert')
       search_fields = ('name','owner','peerid')
